import * as React from 'react';
import {
Text,
TextProps,
TextVariation,
useTheme,
} from '@aws-amplify/ui-react';
import { Demo } from '@/components/Demo';
import { TextPropControls } from './TextPropControls';
import { useTextProps } from './useTextPropControlProps';
const propsToCode = (
variation: TextVariation,
{
as,
isTruncated,
color,
lineHeight,
fontWeight,
fontStyle,
fontSize,
textDecoration,
}: TextProps,
value: string
) => `
${value}
`;
export const TextDemo = ({ children }) => {
const props = useTextProps();
const {
as,
variation,
isTruncated,
color,
lineHeight,
fontWeight,
fontStyle,
fontSize,
textDecoration,
value,
} = props;
return (
}
>
{value}
);
};
export const TextStylingSample = () => {
const theme = useTheme();
return (
This is my styled text
);
};